#ifndef PROCESSTASK_H
#define PROCESSTASK_H

#include "imagerecord.h"

#include <QSemaphore>
#include <QThreadPool>
#include <QRunnable>
#include <QDebug>

class ProcessTask : public QObject , public QRunnable
{
    Q_OBJECT
public:
    ProcessTask(ImageRecord &imgcard,StepProcess endstep,QObject *parent = nullptr );

    // QRunnable interface
public:
    void run() override;

signals:
    void errorOccurred(const QString &message);
    void finishProcess(ImageRecord imgcard);

private:
    StepProcess endstep;
    ImageRecord imgcard;
};

#endif // PROCESSTASK_H
